<form class="layui-form model-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<div class="layui-form-item">
		<label class="layui-form-label">头像：</label>
		{upload:image name="avatar|头像|90x90|建议上传尺寸450x450|450x450" value="isset($info['avatar_url']) ? $info['avatar_url'] : ''"}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">真实姓名：</label>
			<div class="layui-input-inline">
				<input name="realname" value="{$info.realname|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入真实姓名" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">人员昵称：</label>
			<div class="layui-input-inline">
				<input name="nickname" value="{$info.nickname|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入人员昵称" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">手机号码：</label>
			<div class="layui-input-inline">
				<input name="mobile" value="{$info.mobile|default=''}" lay-verify="required|phone" placeholder="请输入手机号码" autocomplete="off" class="layui-input" type="tel">
			</div>
		</div>

		<div class="layui-inline">
			<label class="layui-form-label">电子邮箱：</label>
			<div class="layui-input-inline">
				<input name="email" value="{$info.email|default=''}" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">身份证号：</label>
			<div class="layui-input-inline">
				<input name="identity" value="{$info.identity|default=''}" lay-verify="identity" placeholder="请输入身份证号" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">性别：</label>
			<div class="layui-input-inline">
				{common:select param="gender|1|性别|name|id" data="$genderList" value="isset($info['gender']) ? $info['gender'] : 1"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">职级：</label>
			<div class="layui-input-inline">
				{common:select param="level_id|1|职级|name|id" data="$levelList" value="isset($info['level_id']) ? $info['level_id'] : 0"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">岗位：</label>
			<div class="layui-input-inline">
				{common:select param="position_id|1|岗位|name|id" data="$positionList" value="isset($info['position_id']) ? $info['position_id'] : 0"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">入职时间：</label>
			<div class="layui-input-inline">
				{date:select param="entry_date|入职时间|datetime" value="$info.format_entry_date|default=''"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">所属部门：</label>
			<div class="layui-input-inline">
				{common:select param="dept_id|0|所属部门|name|id" data="$deptList" value="isset($info['dept_id']) ? $info['dept_id'] : 0"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">用户名：</label>
			<div class="layui-input-inline">
				<input name="username" value="{$info.username|default=''}" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">密码：</label>
			<div class="layui-input-inline">
				<input name="password" placeholder="请输入密码" autocomplete="off" class="layui-input" type="password">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">所属城市：</label>
		{city:select value="isset($info['province_name'])?$info['province_name']: '',isset($info['city_name'])?$info['city_name']:'',isset($info['district_name'])?$info['district_name']:''" limit="3"}
	</div>
	<div class="layui-form-item" style="width: 625px;">
		<label class="layui-form-label">详细地址：</label>
		<div class="layui-input-block">
			<input name="address" value="{$info.address|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入详细地址" class="layui-input" type="text">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">所属角色：</label>
		<div class="layui-input-block">
			{checkbox:select param="role_ids|name|id" data="$roleList" value="isset($info['role_ids']) ? $info['role_ids'] : ''"}
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:625px;">
		<label class="layui-form-label">备注：</label>
		<div class="layui-input-block">
			<textarea name="note" id="note" placeholder="请输入备注" class="layui-textarea">{$info.note|default=''}</textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">管理员：</label>
			<div class="layui-input-inline">
				{common:switch name="is_admin" title="是|否" value="isset($info['is_admin']) ? $info['is_admin'] : 2"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">状态：</label>
			<div class="layui-input-inline">
				{common:switch name="status" title="在用|禁用" value="isset($info['status']) ? $info['status'] : 1"}
			</div>
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
